import { LAYOUT } from '../consts'
const menu: any = {
  name: 'sys:manager',
  path: '/sys/manager',
  component: LAYOUT,
  meta: {
    title: '系统管理',
    icon: 'SettingOutlined',
    perms: ['admin', 'sys:manager'],
    orderNo: 100,
    component: 'LAYOUT',
  },
  children: [
    {
      name: 'sys:role',
      path: '/sys/role/index',
      component: () => import('/@/views/sys/role/index.vue'),
      meta: {
        title: '角色',
        icon: 'SolutionOutlined',
        orderNo: 0,
        perms: ['admin', 'sys:role'],
        component: '/sys/role/index',
        btns: {
          'sys:role:page': '分页查询角色',
          'sys:role:detail': '查看角色详情',
          'sys:role:save': '添加角色',
          'sys:role:update': '修改角色',
          'sys:role:remove': '删除角色',
        },
      },
    },
    {
      name: 'sys:config',
      path: '/sys/config/index',
      component: () => import('/@/views/sys/config/index.vue'),
      meta: {
        title: '配置',
        icon: 'ContainerOutlined',
        orderNo: 1,
        perms: ['admin', 'sys:config'],
        component: '/sys/config/index',
        btns: {
          'sys:config:page': '分页查询配置',
          'sys:config:detail': '查看配置详情',
          'sys:config:save': '添加配置',
          'sys:config:update': '修改配置',
          'sys:config:remove': '删除配置',
        },
      },
    },
    {
      name: 'sys:post',
      path: '/sys/post/index',
      component: () => import('/@/views/sys/post/index.vue'),
      meta: {
        title: '岗位',
        icon: 'DeploymentUnitOutlined',
        orderNo: 2,
        perms: ['admin', 'sys:post'],
        component: '/sys/post/index',
        btns: {
          'sys:post:page': '分页查询岗位',
          'sys:post:detail': '查看岗位详情',
          'sys:post:save': '添加岗位',
          'sys:post:update': '修改岗位',
          'sys:post:remove': '删除岗位',
        },
      },
    },
    {
      name: 'sys:dept',
      path: '/sys/dept/index',
      component: () => import('/@/views/sys/dept/index.vue'),
      meta: {
        title: '部门',
        icon: 'TeamOutlined',
        orderNo: 3,
        perms: ['admin', 'sys:dept'],
        component: '/sys/dept/index',
        btns: {
          'sys:dept:page': '分页查询部门',
          'sys:dept:detail': '查看部门详情',
          'sys:dept:save': '添加部门',
          'sys:dept:update': '修改部门',
          'sys:dept:remove': '删除部门',
        },
      },
    },
    {
      name: 'sys:dict',
      path: '/sys/dict/index',
      component: () => import('/@/views/sys/dict/index.vue'),
      meta: {
        title: '字典',
        icon: 'SettingOutlined',
        orderNo: 4,
        perms: ['admin', 'sys:dict'],
        component: '/sys/dict/index',
        btns: {
          'sys:dict:page': '分页查询字典',
          'sys:dict:detail': '查看字典详情',
          'sys:dict:save': '添加字典',
          'sys:dict:update': '修改字典',
          'sys:dict:remove': '删除字典',
        },
      },
    },
    {
      name: 'sys:menu',
      path: '/sys/menu/index',
      component: () => import('/@/views/sys/menu/index.vue'),
      meta: {
        title: '菜单',
        icon: 'SettingOutlined',
        orderNo: 5,
        perms: ['admin', 'sys:menu'],
        component: '/sys/menu/index',
        btns: {
          'sys:menu:page': '分页查询菜单',
          'sys:menu:detail': '查看菜单详情',
          'sys:menu:save': '添加菜单',
          'sys:menu:update': '修改菜单',
          'sys:menu:remove': '删除菜单',
        },
      },
    },
    {
      name: 'sys:dictItem',
      path: '/sys/dictItem/index',
      component: () => import('/@/views/sys/dictItem/index.vue'),
      meta: {
        title: '字典项',
        icon: 'SettingOutlined',
        orderNo: 6,
        hideMenu: true,
        perms: ['admin', 'sys:dictItem'],
        component: '/sys/dictItem/index',
        btns: {
          'sys:dictItem:page': '分页查询字典项',
          'sys:dictItem:detail': '查看字典项详情',
          'sys:dictItem:save': '添加字典项',
          'sys:dictItem:update': '修改字典项',
          'sys:dictItem:remove': '删除字典项',
        },
      },
    },
  ],
};

export default menu;
